package com.example.entity;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.enums.Gender;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

@Data
@Builder
public class User extends Model<User> {
    
    @Tolerate
    public User() {
        
    }
    
    private Long id;
    private String name;
    private Integer age;
    private String email;
    private String address;
    @Version
    private Integer version;
    
    private Gender gender;

    @Override
    protected Serializable pkVal() {
        return id;
    }
    
    
}
